import { $get, $delete } from '@js/request'
import { SystemQuestionSchema } from '@src/components/schema/systemQuestion'

export async function getListRequest (condition: string, page: number, limit: number): Promise<{ list: SystemQuestionSchema[], total: number }> {
  const res = await $get('/api/common/maintainlog', {
    condition,
    page,
    limit
  })
  return res.data
}

export async function delRequest (id: string): Promise<void> {
  const res = await $delete(`/api/common/maintainlog/${id}`)
  return res.data
}
